{% extends "learning_logs/base.html" %}
{% load bootstrap3 %}

{% block header %}
<p>Add a new topic</p>
{% endblock header %}

{% block content %}

<form class="form" action="{% url 'learning_logs:new_topic' %}" method='POST'>
	{% csrf_token %}
	{% bootstrap_form form %}

	<!-- 让 Django 自动创建显示表单所需的全部字段 -->
	<!-- {{form.as_p}} -->
	{% buttons %}
	<button name='submit' class="btn btn-primary">add topic</button>
	{% endbuttons %}
</form>

{% endblock content %}
